package com.buaa.enums;

public enum OperationType {

    USER_ADD("1", "添加交警账号"),
    USER_UPDATE("2", "更新交警账号"),
    USER_DELETE("3", "删除交警账号"),
    USER_DELETE_BULK("4", "批量删除交警账号"),

    USER_LOGIN_OK("5", "交警登录成功"),

    USER_LOGIN_FAIL("6", "交警登录成功"),

    USER_LOGOUT_OK("7", "交警退出成功"),

    USER_EXT_INSERT("8", "更新交警用户信息"),
    USER_EXT_UPDATE("9", "更新交警用户信息"),
    USER_EXT_DELETE("10", "清除交警用户信息"),

    USER_EXT_DELETE_BULK("11", "批量删除交警用户信息")
    ;

    private final String key;
    private final String desc;

    OperationType(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public String getKey() {
        return key;
    }

    public String getDesc() {
        return desc;
    }
}
